﻿@{
    ViewBag.Title = "ListCity";
}
@using System.Web.Mvc;
@model IEnumerable<JChatAdmin.Models.CityCountryModel.CityCountryModel>
      
<h2>ListCity</h2>

<table cellpadding="0" id="postlist" class="listtable">
    <thead>
        <tr>
            <th>@Html.Label("CityID")</th>
            <th>@Html.Label("City")</th>
            <th>@Html.Label("Country")</th>
            <th>Tool</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
        <tr>
            <td>@item.CityID</td>
            <td>@item.NameCity</td>
            <td>@item.NameCountry</td>
            <td>@Html.ActionLink("Delete", "DeleteCity", new { _cityid = item.CityID })</td>
        </tr>
        }
    </tbody>
</table>
<div style="margin-top:30px">
@Html.Partial("AddCity")
</div>